package com.sport.bean;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * 分页查询实体类
 *
 * @Author wxq
 * @Date 2021/5/12
 **/
@Data
@AllArgsConstructor
@NoArgsConstructor
public class PageResult<T> {


    private String msg;

    //状态码
    private int code;

    //数据列表
    private List<T> data;

    //总记录数
    private long count;

    public PageResult(List<T> data, long count) {
        this.data = data;
        this.count = count;
    }
}
